
<?php $pl = $this->postListVars[$this->postListLevel]; ?>

<?php if ($pl->adminToolsVisible): ?>
<a href="<?php echo $pl->addLinkUrl; ?>">New Thread</a>
<?php endif; ?>

<?php if ($pl->postCount > 0): ?>
<ul class="cl">
<?php foreach ($pl->postList as $p): ?>
  <li class="mg_vt_emm">
    <h3 class="mg_clr"><a href="<?php echo $p->url; ?>"><?php echo $this->escape($p->title); ?></a></h3>
    <small>
<?php if ($p->hostLinkVisible === TRUE): ?>
On <a href="<?php echo $p->hostUrl; ?>"><?php echo $p->hostName; ?></a> &bull;
<?php endif; ?>
<!-- Started by <strong><a href="<?php echo $p->creatorUrl; ?>"><?php echo $p->creatorName; ?></a></strong>
 &bull; <?php echo $this->relTimeString($p->time); ?>
 &bull; --><?php echo $this->itemCount($p->commentCount, 'No responses', '<strong>1</strong> response', '<strong>%d</strong> responses'); ?>
<?php if ($p->updaterId && $p->commentCount > 0): ?>
 &bull; Lastest response by <strong><a href="<?php echo $p->updaterUrl; ?>"><?php echo $p->updaterName; ?></a></strong>,
 <?php echo $this->relTimeString($p->updateTime); ?>
<?php endif; ?>
<?php if ($p->editLinkUrl): ?>
 &bull; <a href="<?php echo $p->editLinkUrl; ?>">Edit</a>
<?php endif; ?>
<?php if ($p->deleteLinkUrl): ?>
 &bull; <a href="<?php echo $p->deleteLinkUrl; ?>">Delete</a>
<?php endif; ?>
	</small>
  </li>
<?php endforeach; ?>
</ul>

<div class="block box_1 shade_1 pd_s">
<?php if ($pl->postListPagePrevUrl): ?>
<a href="<?php echo $pl->postListPagePrevUrl; ?>">&larr; Previous</a> &bull;
<?php endif; ?>
Threads <strong><?php echo $pl->postListFirst; ?> - <?php echo $pl->postListLast; ?></strong> of <strong><?php echo $pl->postCountTotal; ?></strong>
<?php if ($pl->postListPageNextUrl): ?>
 &bull; <a href="<?php echo $pl->postListPageNextUrl; ?>">Next &rarr;</a>
<?php endif; ?>
</div>

<?php endif; ?>

